﻿namespace Sidvall.Data
{
    public class ConstraintException : System.Exception
    {
        #region Public Members

        #region GetMessageResolved

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
        public string GetMessageResolved()
        {
            if (!string.IsNullOrWhiteSpace(this.Message))
                return this.Message;
            else
                return Sidvall.Resources.ResourceKeyManager.Current.ConstraintExceptionMessage;
        }

        #endregion

        #endregion
        #region Constructors

        public ConstraintException()
        {

        }
        public ConstraintException(string message) : base(message)
        {

        }
        public ConstraintException(string message, System.Exception innerException) : base(message, innerException)
        {
        }

        #endregion
    }
}
